package method3;

public class FruitText {

    public static void main(String[] args) {



        Apple apple = new Apple();

        apple.setName("苹果");
        apple.setArea("渤海湾");
        apple.setPrice(15);

        Banana banana = new Banana();
        banana.setName("香蕉");
        banana.setArea("广西南宁");
        banana.setPrice(12);

        Watermelon watermelon =new Watermelon();
        watermelon.setName("西瓜");
        watermelon.setArea("新疆");
        watermelon.setPrice(20);

        System.out.println(apple.toString());
        apple.Juicing();
        System.out.println(banana.toString());
        banana.eat();
        System.out.println(watermelon.toString());
        watermelon.cut();
    }

}
